package com.phone.store.entity;

import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author fangyu
 * @version v1.0.0
 * @date 2020/7/30 3:37 下午
 */
@Data
@Entity
@DynamicInsert
@DynamicUpdate
public class PhoneInfo {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer phoneId;

    private String phoneName;

    private BigDecimal phonePrice;

    private String phoneDescription;

    private Integer phoneStock;

    private String phoneIcon;

    private String phoneTag;

    private Integer categoryType;

    private Date createTime;

    private Date updateTime;
}
